package com.symone.webcms.service;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.symone.webcms.model.LoginLog;

import java.util.List;

/**
 *   @description : LoginLog 服务接口
 *   ---------------------------------
 * 	 @author Archer Chu
 *   @since 2018-11-18
 */
public interface LoginLogService extends IService<LoginLog> {

        boolean insert(LoginLog entity);

        Page<LoginLog> findPage(Page<LoginLog> page, Wrapper<LoginLog> entity);

        List<String> getDistinctYmByCreateTime(String loginName);

        int delete(long id);

        boolean deleteFlagById(long id);

        int clear();

        int deleteAll();
}
